#ifndef CON_CURRENT_H
#define CON_CURRENT_H

#include "Common.h"
#include "ThreadCache.h"

static void *ConCurrentAlloc(size_t size)
{
  if(pTLSThreadCache == nullptr){
    pTLSThreadCache = new ThreadCache;
  }

  return pTLSThreadCache->alloc(size);
}

static void ConCurrentDealloc(void *obj, size_t size)
{
  pTLSThreadCache->dealloc(obj, size);
}

#endif
